<style type="text/css">
<!--
body {
  margin-left: 0px;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  background-color: #F8F9FA;
}
-->
</style>
<script type="text/javascript">
  function checkForm(){
    var F = document.form1;
    if( !F.recom_photo.value ){
      alert("请选择推荐上传图片");
      return false;
    }
    F.submit();
  }

  function show(id){
    if( id == 'text' ){     
      document.getElementById('img').style.display = 'none';
    }
    if(id == 'img'){
      document.getElementById('img').style.display = 'block';
    }
  }
</script>
<link href="__PUBLIC__/Admin/Css/skin.css" rel="stylesheet" type="text/css" />
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" height="29" valign="top" background="__PUBLIC__/Admin/images/mail_leftbg.gif"><img src="__PUBLIC__/Admin/images/left-top-right.gif" width="17" height="29" /></td>
    <td width="100%s" height="29" valign="top" background="__PUBLIC__/Admin/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">推荐管理</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="__PUBLIC__/Admin/images/mail_rightbg.gif"><img src="__PUBLIC__/Admin/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="71" valign="middle" background="__PUBLIC__/Admin/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
      <table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="13" valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top">
            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td class="left_txt">当前位置：<a href="__URL__/recomList">推荐位列表</a> -> 推荐设定</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>
                  <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
                    <tr>
                      <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;推荐设定</td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <form name="form1" method="POST" action="__URL__/recomSet" enctype="multipart/form-data" >
                    <tr>
                      <td width="20%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">推荐位置：</td>
                      <td width="3%" bgcolor="#f2f2f2">&nbsp;</td>
                      <td width="32%" height="30" bgcolor="#f2f2f2">
                        <select name="recom_site">
                          <volist name='recomTypeList' id='vo'>
                            <option value="{$vo.recom_type_code}">{$vo.recom_type_name}</option>
                          </volist>
                        </select>
                      </td>
                      <td width="45%" height="30" bgcolor="#f2f2f2" class="left_txt">推荐位置</td>
                    </tr>
                    <tr>
                      <td width="20%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">推荐类型：</td>
                      <td width="3%" bgcolor="#f2f2f2">&nbsp;</td>
                      <td width="32%" height="30" bgcolor="#f2f2f2" class="left_txt">
                        <input name="recom_type" type="radio" size="5" value="2" onclick="show('text');" disabled/>文字类型&nbsp;&nbsp;
                        <input name="recom_type" type="radio" size="5" value="1" checked onclick="show('img');"/>图片类型
                      </td>
                      <td width="45%" height="30" bgcolor="#f2f2f2" class="left_txt">推荐类型</td>
                    </tr>
                    <tr>
                      <td width="20%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2"> 上传图片：</td>
                      <td width="3%" bgcolor="#f2f2f2">&nbsp;</td>
                      <td width="32%" height="30" bgcolor="#f2f2f2">
                        <input name="recom_photo" type="file" size="30" >
                      </td>
                      <td width="45%" height="30" bgcolor="#f2f2f2" class="left_txt">上传图片</td>
                    </tr>
                    <tr>
                      <td width="20%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">推荐尺寸：</td>
                      <td width="3%" bgcolor="#f2f2f2">&nbsp;</td>
                      <td width="32%" height="30" bgcolor="#f2f2f2" class="left_txt">
                        宽度：<input name="recom_width" type="text" size="5" value="{$editInfo[0].recom_width}"/>&nbsp;&nbsp;
                        高度：<input name="recom_height" type="text" size="5" value="{$editInfo[0].recom_name}"/>
                      </td>
                      <td width="45%" height="30" bgcolor="#f2f2f2" class="left_txt">推荐尺寸</td>
                    </tr>
                    <tr>
                      <td width="20%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2"> 显示名称：</td>
                      <td width="3%" bgcolor="#f2f2f2">&nbsp;</td>
                      <td width="32%" height="30" bgcolor="#f2f2f2">
                        <input name="recom_title" type="text" size="30" value="{$editInfo[0].recom_title}"/>
                      </td>
                      <td width="45%" height="30" bgcolor="#f2f2f2" class="left_txt">推荐内容显示名称（alt显示）</td>
                    </tr>
                    <tr>
                      <td width="20%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">推荐链接：</td>
                      <td width="3%" bgcolor="#f2f2f2">&nbsp;</td>
                      <td width="32%" height="30" bgcolor="#f2f2f2">
                        <input name="recom_link" type="text" size="30" value="{$editInfo[0].recom_link}"/>
                      </td>
                      <td width="45%" height="30" bgcolor="#f2f2f2" class="left_txt">推荐链接</td>
                    </tr>

                    <tr>
                      <td width="100%" height="30" align="center" colspan="4">
                        <input type="hidden" value="{$editCode}" name="recom_code">
                        <input type="submit" value="确 认" name="B1" onclick="checkForm();" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="reset" value="重 置" name="B12" />
                      </td>
                    </tr>
                  </form>
                  </table>
                </td>
              </tr>   
            </table>
          </td>
        </tr> 
      </table>
   </td>
    <td background="__PUBLIC__/Admin/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="__PUBLIC__/Admin/images/mail_leftbg.gif"><img src="__PUBLIC__/Admin/images/buttom_left2.gif" width="17" height="17" /></td>
      <td height="17" valign="top" background="__PUBLIC__/Admin/images/buttom_bgs.gif"><img src="__PUBLIC__/Admin/images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="__PUBLIC__/Admin/images/mail_rightbg.gif"><img src="__PUBLIC__/Admin/images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>

</body>
